Loading...
 
Skip to main content

Console cache:clear command creates files as the current user

Status
Pending
Subject
Console cache:clear command creates files as the current user
Version
21.x
22.x
23.x
Category
  • Regression
Feature
Console / Command Line
Performance / Speed / Load / Compression / Cache
Resolution status
Partially solved
Submitted by
Jonny Bradley
Keep informed
Mike Finko
Lastmod by
Mike Finko
Rating
(0)
Description

Recently (since 21.x i think) the command php console.php c:c clears the cache files but then recreates several but using the current user (so root if using sudo to repair a previous issue).

Then when using the browser to clear all caches we get these sort of errors:

Copy to clipboard
Cache file temp/templates_c/en_basic^c0a74c88a95913ac40aae6373020e7a6b2c0f1f9_0.file.cookie_consent.tpl.php is not writable Error Cache file temp/cache/1a11dae0a46d862cd81ddc7650f62cb8 is not writable Error Cache file temp/cache/container.php is not writable Error Cache file temp/cache/cd13e8c5df46647a6182a0cc858c8ed9 is not writable


Solution: console clear cache should not regenerate any cache files.

Workaround
Use ssh to delete the files manually 😑
Importance
8
Easy to solve?
7
Priority
56
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
Ticket ID
7614
Created
Wednesday 18 November, 2020 13:59:52 UTC
by Jonny Bradley
LastModif
Thursday 29 July, 2021 17:52:44 UTC


Collapse/expand modules below
Show PHP error messages