smarty-php / smarty-php/smarty
clearCache with path doesn't work
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.3k
- Forks
- 709
- PR merge metrics
- No merged PRs in 30d
Description
clearCache() if ok (no parameter)
but I use path as parameter as before in V4 (just switch from v4 to v5), the function doesn't work anymore
clearCache(null, 'Desktop|myTemplate') for exemple is ko (if I use smarty v4 lib, it works!!!)
note 0: I deleted all the cache from v4
note 1: my structure is "Desktop|myTemplate|id of my page"
note 2: I executed clearCache(null, 'Desktop|myTemplate') and I checked my cache and the folder "Desktop|myTemplate" is not deleted or emptied. Nothing happen. In V4 it was ok
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing clearCache(null, 'Desktop|myTemplate') with the described cache structure, then compare the v4 and v5 cache-clearing behavior. Done means the specified Desktop|myTemplate cache folder is deleted or emptied when the path is supplied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100