2016-09-15 81 views
0

我的十月CMS網站開發了一個奇怪的緩存行爲。當緩存未被清除一段時間時,它會呈現空白主頁。十月CMS無需渲染需要緩存清除

去後臺,並與

儀表板清除緩存緩存控件

當前版本1.0.1

作者 Flynsarmy

解決了這個問題。

我的緩存配置文件是:

<?php 

return [ 

/* 
|-------------------------------------------------------------------------- 
| Default Cache Store 
|-------------------------------------------------------------------------- 
| 
| This option controls the default cache connection that gets used while 
| using this caching library. This connection is used when another is 
| not explicitly specified when executing a given caching function. 
| 
*/ 

'default' => 'file', 

/* 
|-------------------------------------------------------------------------- 
| Cache Stores 
|-------------------------------------------------------------------------- 
| 
| Here you may define all of the cache "stores" for your application as 
| well as their drivers. You may even define multiple stores for the 
| same cache driver to group types of items stored in your caches. 
| 
*/ 

'stores' => [ 

    'apc' => [ 
     'driver' => 'apc' 
    ], 

    'array' => [ 
     'driver' => 'array' 
    ], 

    'database' => [ 
     'driver' => 'database', 
     'table' => 'cache', 
     'connection' => null, 
    ], 

    'file' => [ 
     'driver' => 'file', 
     'path' => storage_path().'/framework/cache', 
    ], 

    'memcached' => [ 
     'driver' => 'memcached', 
     'servers' => [ 
      [ 
       'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100 
      ], 
     ], 
    ], 

    'redis' => [ 
     'driver' => 'redis', 
     'connection' => 'default', 
    ], 

], 

/* 
|-------------------------------------------------------------------------- 
| Cache Key Prefix 
|-------------------------------------------------------------------------- 
| 
| When utilizing a RAM based store such as APC or Memcached, there might 
| be other applications utilizing the same cache. So, we'll specify a 
| value to get prefixed to all our keys so we can avoid collisions. 
| 
*/ 

'prefix' => 'october', 

]; 

和緩存目錄776

有沒有人有任何想法,這可能是爲什麼?

感謝

回答

1

我用我的所有項目OctoberCMS 6個月以來,從來沒有得到這個問題。 無論如何,嘗試使用此命令刪除緩存php artisan cache:clear

+0

謝謝。這與禁用路由緩存插件相結合解決了它。 – SlartyBartfast