0
Welcome Guest! Login
0 items Join Now

Errors when turning cache off

    • eharrold's Avatar
    • eharrold
    • Sr. Rocketeer
    • Posts: 140
    • Thanks: 0

    Errors when turning cache off

    Posted 13 years 7 months ago
    • Once I start using the Joomla cache, and then later turn it off, I get the following error forever after no matter if the cache is on or off:

      JFolder: :folder: Path is not a folder. Path: /public_html/sitename/administrator/cache

      Any ideas?
    • eharrold's Avatar
    • eharrold
    • Sr. Rocketeer
    • Posts: 140
    • Thanks: 0

    Re: Errors when turning cache off

    Posted 13 years 4 months ago
    • Anyone ?
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Errors when turning cache off

    Posted 13 years 4 months ago
    • eharrold's Avatar
    • eharrold
    • Sr. Rocketeer
    • Posts: 140
    • Thanks: 0

    Re: Errors when turning cache off

    Posted 13 years 4 months ago
    • Not using sh404sef - I thought that was only for Joomla 1.5?
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Errors when turning cache off

    Posted 13 years 4 months ago
    • can you try replacing the getCount() method in the rt_missioncontrol/lib/rtcachecleaner.php with the following:
       
      function getCount() {
       
                     $conf = JFactory::getConfig();
                     $count = 0;
                     $allCache = array();
       
                     // setup options with site cachebase
                     $options = array(
                          'defaultgroup'  => '',
                          'storage'        => $conf->get('cache_handler', ''),
                          'caching'         => true,
                          'cachebase'      => $conf->get('cache_path', JPATH_SITE.DS.'cache')
                     );
       
                     // clean out site caches
                     $cache = JCache::getInstance('', $options);
       
                     var_dump ($cache);
                     $site_caches = array_keys($cache->getAll());
                     
                     $count = sizeof($site_caches);
       
       
                     if (file_exists(JPATH_ADMINISTRATOR.DS.'cache')) {
       
                          // modify options to use admin cachebase
                          $options['cachebase'] = JPATH_ADMINISTRATOR.DS.'cache';
                          $cache = JCache::getInstance('', $options);
       
                          $allCache = $cache->getAll();
       
                          if ($allCache) {
                               $admin_caches = array_keys($allCache);
                               $count += sizeof($admin_caches);
                          }
                          
                          
                     }
       
                     return($count);
           }
       

      Also please confirm that the adminstrator/cache/ folder is not deleted when you turn off the caching.
    • eharrold's Avatar
    • eharrold
    • Sr. Rocketeer
    • Posts: 140
    • Thanks: 0

    Re: Errors when turning cache off

    Posted 13 years 4 months ago
    • When I made the change it crashes the template with this in the header of the page:

      object(JCacheController)#305 (2) { ["cache"]=> object(JCache)#304 (2) { ["_options"]=> &array(9) { ["cachebase"]=> string(45) "/home5/impactp5/public_html/wiseappsllc/cache" ["lifetime"]=> int(30) ["language"]=> string(5) "en-GB" ["storage"]=> string(9) "cachelite" ["defaultgroup"]=> string(0) "" ["locking"]=> bool(true) ["locktime"]=> int(15) ["checkTime"]=> bool(true) ["caching"]=> bool(true) } ["_errors:protected"]=> array(0) { } } ["options"]=> &array(9) { ["cachebase"]=> string(45) "/home5/impactp5/public_html/wiseappsllc/cache" ["lifetime"]=> int(30) ["language"]=> string(5) "en-GB" ["storage"]=> string(9) "cachelite" ["defaultgroup"]=> string(0) "" ["locking"]=> bool(true) ["locktime"]=> int(15) ["checkTime"]=> bool(true) ["caching"]=> bool(true) } }

      The "adminstrator/cache/ folder" is not deleted unless I use the mission control template, then it is deleted
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Errors when turning cache off

    Posted 13 years 4 months ago
    • well, i can replicate the current issue when i delete the cache folder manually. However MC does not delete the directory for me. Not sure how it could actually. Anyway, my fix works in my testing and will be in the next release.
    • eharrold's Avatar
    • eharrold
    • Sr. Rocketeer
    • Posts: 140
    • Thanks: 0

    Re: Errors when turning cache off

    Posted 13 years 4 months ago
    • I'm using the latest Joomla 1.7.3 and Gantry 3.2.13 and File Caching - Momentum Theme with all the latest RT plugins too.
    • eharrold's Avatar
    • eharrold
    • Sr. Rocketeer
    • Posts: 140
    • Thanks: 0

    Re: Errors when turning cache off

    Posted 13 years 4 months ago
    • Also, when using Mission Control, the administrator cache folder is deleted when I do a clean cache from the top menu.

Time to create page: 0.056 seconds