? ?
avatar C-Lodder
C-Lodder
22 Aug 2019

Steps to reproduce the issue

Go to /administrator/index.php?option=com_cache&view=purge

Expected result

A page

Actual result

404 View not found [name, type, prefix]: purge, html, Administrator

avatar C-Lodder C-Lodder - open - 22 Aug 2019
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Aug 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Aug 2019
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 22 Aug 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Aug 2019
Status New Discussion
avatar brianteeman
brianteeman - comment - 22 Aug 2019

Relevant PR that broke this #24077 ??

avatar C-Lodder
C-Lodder - comment - 22 Aug 2019

@brianteeman Ah, I think the issue is that I'm using the Modern menu preset, whereas the default is set to Joomla. I suppose the items simply need removing from the other preset

avatar brianteeman
brianteeman - comment - 22 Aug 2019

the presets havent been touched afaict

avatar infograf768
infograf768 - comment - 22 Aug 2019

We have exactly the same error when we use the joomla preset and click in the System dashboard on the "Clear Expired Cache".
Is there any reason why this view is no more in J4?

avatar C-Lodder
C-Lodder - comment - 22 Aug 2019

@infograf768 May have been merged into a single view? Not sure

avatar infograf768
infograf768 - comment - 22 Aug 2019

Hmm, it is not in the cache view and the functionnality was quite different.
The purge method is still present in CacheModel and Controller.

avatar infograf768
infograf768 - comment - 22 Aug 2019

Help on this for 3.x is https://help.joomla.org/proxy?keyref=Help39:Site_Maintenance_Purge_Expired_Cache&lang=en:

This tool will purge all expired cache files from the cache folders. Cache files are temporary files that are created to improve the performance of your site. Cache files that are still current according to what Joomla! finds will not be deleted.

    Because this process has to check each cache file individually, it is slower and requires more system resources. Once the purge process is complete there should be no loss in speed for your users, because all up to date cache files are still available for your current Joomla! website.
    In contrast, the Clear Cache option runs more quickly since it deletes all of the files stored in each cache folder. However, the website may be a little slower immediately after running Clean Cache, since all cache files -- including current ones -- are removed, so users lose the benefit of using the cache files until they are re-created by Joomla! to be up to date with your current site.
    If you have a large number of cache files and your server setting for 'max_input_time' is set to less then 60 seconds, you may receive a PHP warning message saying that the process exceeded the maximum time allowed. In this case, no harm is done but all of the files may not have been purged. It is ok simply to re-run the process.
avatar infograf768
infograf768 - comment - 22 Aug 2019

code is weird
we have in the unique view
$toolbar->appendButton('Confirm', 'COM_CACHE_RESOURCE_INTENSIVE_WARNING', 'delete', 'COM_CACHE_PURGE_EXPIRED', 'purge', false);
@Hackwar Can you look at this please.

avatar infograf768
infograf768 - comment - 22 Aug 2019

OK, found it.
there is a mistake in cache view.html code
we should have
$toolbar = Toolbar::getInstance('toolbar');
and not
$toolbar = Factory::getContainer()->get(ToolbarFactoryInterface::class)->createToolbar('toolbar');

Thereafter we can see the button
Screen Shot 2019-08-22 at 15 50 22

Therefore we should correct that and take off from the Presets the part concerning the purge link (or change the link to be the same as Clear Cache);

avatar 810
810 - comment - 23 Aug 2019

i still get View not found [name, type, prefix]: purge, html, Administrator

avatar infograf768
infograf768 - comment - 24 Aug 2019

@810
I will make a patch today.

avatar infograf768 infograf768 - change - 24 Aug 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-08-24 08:08:12
Closed_By infograf768
avatar infograf768
infograf768 - comment - 24 Aug 2019

Please test #26003
closing as we have patch

avatar infograf768 infograf768 - close - 24 Aug 2019

Add a Comment

Login with GitHub to post a comment