https://bugzilla.wikimedia.org/show_bug.cgi?id=67997

            Bug ID: 67997
           Summary: CacheTime::updateCacheExpiry() does not work as
                    expected
           Product: Wikimedia
           Version: wmf-deployment
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

I'd like to manage the cache expiry with an extension.
For example, I'd like to refresh a page every hour.
Apparently, for this I should use $parser->getOutput()->updateCacheExpiry( 3600
);
And this works fine but only when $wgDebugToolbar is true;

I believe that the problem in the block of this code
https://doc.wikimedia.org/mediawiki-core/master/php/html/Article_8php_source.html#l00540

Firstly, the function CacheTime::updateCacheExpiry() does not affect the
browser cache. When checking the relevance of the browser cache is compared
only date of creating the page (ignored updateCacheExpiry). (line 569)

I tried to get around this using $wgOut->enableClientCache(false);
And when Article::view: doing uncached parse is sent
OutputPage::sendCacheControl: no caching **
But when ParserOutput cache found is sent OutputPage::sendCacheControl: private
caching; Mon, 14 Jul 2014 13:42:49 GMT ** instead of 'no caching '. And the
problem is repeated again.

So there are two errors.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to