CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 19 Aug 2025 23:48:27 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100820091741
location: https://web.archive.org/web/20100820091741/https://github.com/lorenzo/lazy_loader/
server-timing: captures_list;dur=0.774808, exclusion.robots;dur=0.025596, exclusion.robots.policy;dur=0.011565, esindex;dur=0.015607, cdx.remote;dur=13.807550, LoadShardBlock;dur=186.695000, PetaboxLoader3.datanode;dur=47.060067, PetaboxLoader3.resolve;dur=92.671320
x-app-server: wwwb-app219
x-ts: 302
x-tr: 242
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app219; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 19 Aug 2025 23:48:27 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.67
x-archive-orig-date: Fri, 20 Aug 2010 09:17:41 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "75f935f3b29876aef1be7d1c32acb1dd"
x-archive-orig-x-runtime: 51ms
x-archive-orig-content-length: 25166
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: latin1
memento-datetime: Fri, 20 Aug 2010 09:17:41 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 20 Aug 2010 09:17:41 GMT", ; rel="memento"; datetime="Fri, 20 Aug 2010 09:17:41 GMT", ; rel="next memento"; datetime="Sun, 05 Sep 2010 05:44:38 GMT", ; rel="last memento"; datetime="Mon, 26 Oct 2020 16:10:26 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_17_20100820082548_crawl100-c/52_17_20100820091735_crawl101.arc.gz
server-timing: captures_list;dur=0.576887, exclusion.robots;dur=0.023287, exclusion.robots.policy;dur=0.010841, esindex;dur=0.012394, cdx.remote;dur=8.707544, LoadShardBlock;dur=100.516187, PetaboxLoader3.datanode;dur=57.800576, PetaboxLoader3.resolve;dur=153.404318, load_resource;dur=159.781702
x-app-server: wwwb-app219
x-ts: 200
x-tr: 355
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
lorenzo's lazy_loader at master - GitHub
lorenzo / lazy_loader forked from mcurry/lazy_loader
- Source
- Commits
- Network (2)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
name | age | message | |
---|---|---|---|
![]() |
README | Fri Jul 10 21:47:30 -0700 2009 | spacing [mcurry] |
![]() |
lazy_loader_app_model.php | Wed Apr 28 15:00:50 -0700 2010 | Fixing lazy loading of 'with' models, also ther... [lorenzo] |
![]() |
tests/ | Tue Jul 21 10:55:00 -0700 2009 | Solving some bugs for hbtm associations [lorenzo] |
README
/* * CakePHP Lazy Loader Plugin * Copyright (c) 2009 Matt Curry * https://www.pseudocoder.com/archives/2009/04/27/github-updates * * This is my second attempt at this. * The code posted by jose_zap (Jos? Lorenzo - https://joselorenzo.com.ve/) * on bin.cakephp.org provided inspiration for this revised version * https://bin.cakephp.org/saved/39855 * * @author Matt Curry <matt@pseudocoder.com> * @license MIT * */ /* Requirements */ PHP 5.1 or greater /* Description */ The code is very beta. Please give it a shot and let me know where you hit snags. I've tested it in basic app using Containable and it works great. It probably doesn't work with $recursive. If you find a problem check out the unit tests and see if you can create a failing test case /* Instructions */ 1) Download the plugin to /app/plugins/lazy_loader 2) Put this either in your app_model.php or at the top of any model you want to use it: App::import('Model', 'LazyLoader.app_model'); 3) Have your model extend LazyLoaderAppModel instead of AppModel class MyModel extends LazyLoaderAppModel { ... } 4) For this to work for HATBM relationships you need to include the joinTable and associationForeignKey in the defination. This is because Cake uses the associated models to set the defaults for these. So even if you are following the conventions, set these to avoid having the related model loaded. class Post extends LazyLoaderAppModel { var $name = 'Post'; var $hasAndBelongsToMany = array('Tag' => array('joinTable' => 'posts_tags', 'associationForeignKey' => 'tag_id')); }
- © 2010 GitHub Inc. All rights reserved.
- Terms of Service
- Privacy
- Security