Aaron van Geffen
c0d69f7205
Thumbnails are normally created on demand, e.g. when processing the format codes in a post's body text. Normally, the temporary URL is only used once to generate thumbnails ad-hoc. However, when cache is enabled, a reference to the asset may be used in a cached version of a formatted body text, skipping the normal thumbnail generation routine. When an asset is replaced, currently, all thumbnails are removed and references to them are removed from the database. In case the asset is still referenced in a cached formatted body text, this could lead to an error when requesting the thumbnail, as the thumbnail request is no longer present in the system. As we do not know what posts use particular assets at this point in the code, it is best to work around this issue by unsetting the thumbnail filenames rather than deleting the entries outright. This effectively generates them again on the next request. In the future, we should aim to keep track of what posts make use of assets, so cache may be invalidated in a more targeted way. |
||
---|---|---|
.. | ||
Asset.php | ||
AssetIterator.php | ||
Authentication.php | ||
Cache.php | ||
Database.php | ||
Dispatcher.php | ||
Email.php | ||
ErrorHandler.php | ||
ErrorLog.php | ||
EXIF.php | ||
Form.php | ||
GenericTable.php | ||
Guest.php | ||
Image.php | ||
Member.php | ||
NotAllowedException.php | ||
NotFoundException.php | ||
PageIndex.php | ||
PhotoMosaic.php | ||
Registry.php | ||
Session.php | ||
Setting.php | ||
Tag.php | ||
Thumbnail.php | ||
User.php | ||
UserFacingException.php |