Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(views): Allow serving assets directly from filesystem
BREAKING CHANGES: Assets must have valid file extensions We now cache assets by `"$viewtype/$view"`, not `md5("$viewtype|$view")` which can result in conflicts between cacheable views that don't have file extensions to disambiguate files from directories. This requirement makes it possibile for us to serve assets directly from disk for performance, instead of serving them through PHP. Just create a symlink from /cache/ to /dataroot/views_simplecache/ and if your web server supports following symlinks, you'll get this benefit. This also makes it much easier to explore the available cached resources by navigating to dataroot/views_simplecache and browsing around. Fixes Elgg#8381
- Loading branch information
Showing
8 changed files
with
67 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters