@@ -18,7 +18,7 @@ Caching in InspireCMS accelerates content delivery by storing frequently accesse
1818
1919Configure caching in your application's configuration files.
2020
21- ### Main Cache Settings { .font-bold .text-2xl .my-2 }
21+ ### Main Cache Settings
2222
2323Configure basic cache settings in ` config/inspirecms.php ` :
2424
@@ -42,7 +42,7 @@ Configure basic cache settings in `config/inspirecms.php`:
4242],
4343```
4444
45- ### Laravel Cache Driver Configuration { .font-bold .text-2xl .my-2 }
45+ ### Laravel Cache Driver Configuration
4646
4747InspireCMS uses Laravel's caching system. Configure the cache driver in ` config/cache.php ` :
4848
@@ -84,7 +84,7 @@ InspireCMS uses Laravel's caching system. Configure the cache driver in `config/
8484
8585InspireCMS automatically caches content to reduce database queries.
8686
87- ### Content Cache Configuration { .font-bold .text-2xl .my-2 }
87+ ### Content Cache Configuration
8888
8989Adjust content cache settings:
9090
@@ -99,7 +99,7 @@ Adjust content cache settings:
9999],
100100```
101101
102- ### Content Cache Tags { .font-bold .text-2xl .my-2 }
102+ ### Content Cache Tags
103103
104104Content is cached with tags for easy invalidation:
105105
@@ -118,7 +118,7 @@ $content = Cache::tags(['content:123'])->remember('content:123', 3600, function
118118});
119119```
120120
121- ### Invalidating Content Cache { .font-bold .text-2xl .my-2 }
121+ ### Invalidating Content Cache
122122
123123Automatically invalidated when content is updated, but can also be cleared manually:
124124
@@ -134,7 +134,7 @@ Cache::tags(['content:type:blog'])->flush();
134134
135135Navigation structure is cached for improved performance.
136136
137- ### Navigation Cache Configuration { .font-bold .text-2xl .my-2 }
137+ ### Navigation Cache Configuration
138138
139139``` php
140140// config/inspirecms.php
@@ -146,7 +146,7 @@ Navigation structure is cached for improved performance.
146146],
147147```
148148
149- ### Working with Navigation Cache { .font-bold .text-2xl .my-2 }
149+ ### Working with Navigation Cache
150150
151151Example of cached navigation retrieval:
152152
@@ -155,7 +155,7 @@ Example of cached navigation retrieval:
155155$navigation = inspirecms()->getNavigation('main', 'en');
156156```
157157
158- ### Invalidating Navigation Cache { .font-bold .text-2xl .my-2 }
158+ ### Invalidating Navigation Cache
159159
160160Clear the navigation cache manually:
161161
@@ -171,7 +171,7 @@ Cache::forget("inspirecms.navigation.main.en");
171171
172172InspireCMS caches content routes for faster URL resolution.
173173
174- ### Route Cache Configuration { .font-bold .text-2xl .my-2 }
174+ ### Route Cache Configuration
175175
176176``` php
177177// config/inspirecms.php
@@ -183,7 +183,7 @@ InspireCMS caches content routes for faster URL resolution.
183183],
184184```
185185
186- ### Route Cache Commands { .font-bold .text-2xl .my-2 }
186+ ### Route Cache Commands
187187
188188In addition to Laravel's route caching, clear InspireCMS route cache:
189189
@@ -195,7 +195,7 @@ php artisan inspirecms:clear-route-cache
195195
196196Templates are cached at different levels for optimal performance.
197197
198- ### View Cache { .font-bold .text-2xl .my-2 }
198+ ### View Cache
199199
200200Laravel's view cache for compiled templates:
201201
@@ -207,7 +207,7 @@ php artisan view:cache
207207php artisan view:clear
208208```
209209
210- ### Fragment Caching { .font-bold .text-2xl .my-2 }
210+ ### Fragment Caching
211211
212212Cache specific parts of templates:
213213
@@ -231,7 +231,7 @@ $cacheTtl = 60 * 24; // 24 hours in minutes
231231
232232Cache database queries to reduce load on your database.
233233
234- ### Model Cache { .font-bold .text-2xl .my-2 }
234+ ### Model Cache
235235
236236Cache model queries directly:
237237
@@ -247,7 +247,7 @@ $posts = Cache::remember('published_blog_posts', 3600, function () {
247247});
248248```
249249
250- ### Query Cache Considerations { .font-bold .text-2xl .my-2 }
250+ ### Query Cache Considerations
251251
252252- Cache appropriate queries (frequently accessed, rarely changing)
253253- Use specific cache keys based on query parameters
@@ -258,7 +258,7 @@ $posts = Cache::remember('published_blog_posts', 3600, function () {
258258
259259Media and asset caching improves frontend performance.
260260
261- ### Media Cache Configuration { .font-bold .text-2xl .my-2 }
261+ ### Media Cache Configuration
262262
263263Configure cache headers for media assets:
264264
@@ -274,7 +274,7 @@ Configure cache headers for media assets:
274274],
275275```
276276
277- ### Asset Preprocessing { .font-bold .text-2xl .my-2 }
277+ ### Asset Preprocessing
278278
279279For frontend assets, use Laravel Mix or Vite with proper versioning:
280280
@@ -288,7 +288,7 @@ For frontend assets, use Laravel Mix or Vite with proper versioning:
288288
289289Implement HTTP caching for better performance.
290290
291- ### Cache Headers { .font-bold .text-2xl .my-2 }
291+ ### Cache Headers
292292
293293InspireCMS sets proper cache headers for different content types:
294294
@@ -310,7 +310,7 @@ public function handle($request, Closure $next)
310310}
311311```
312312
313- ### Custom Cache Middleware { .font-bold .text-2xl .my-2 }
313+ ### Custom Cache Middleware
314314
315315Create custom cache middleware for specific sections:
316316
@@ -354,7 +354,7 @@ protected $middlewareGroups = [
354354
355355Populate cache in advance to avoid cache misses and initial slowdowns.
356356
357- ### Cache Warming Command { .font-bold .text-2xl .my-2 }
357+ ### Cache Warming Command
358358
359359Create a command to pre-populate cache:
360360
@@ -438,7 +438,7 @@ protected function schedule(Schedule $schedule)
438438
439439Properly clear cache when needed to ensure fresh content.
440440
441- ### Cache Clear Commands { .font-bold .text-2xl .my-2 }
441+ ### Cache Clear Commands
442442
443443InspireCMS provides specific commands for clearing various caches:
444444
@@ -452,7 +452,7 @@ php artisan inspirecms:clear-route-cache
452452php artisan inspirecms:clear-navigation-cache
453453```
454454
455- ### Automatic Cache Clearing { .font-bold .text-2xl .my-2 }
455+ ### Automatic Cache Clearing
456456
457457InspireCMS automatically clears relevant caches when:
458458
@@ -465,7 +465,7 @@ InspireCMS automatically clears relevant caches when:
465465
466466Track and optimize your cache performance.
467467
468- ### Cache Hit/Miss Tracking { .font-bold .text-2xl .my-2 }
468+ ### Cache Hit/Miss Tracking
469469
470470Implement cache monitoring:
471471
@@ -488,7 +488,7 @@ public function remember($key, $ttl, $callback)
488488}
489489```
490490
491- ### Cache Performance Dashboard { .font-bold .text-2xl .my-2 }
491+ ### Cache Performance Dashboard
492492
493493Consider implementing a cache monitoring dashboard:
494494
0 commit comments